import ${model.adminApiConfigClassName} from '${model.adminApiConfigClassFullName}'
import serverApiMockUtils from '../../utils/serverApiMockUtils'
import mockProdServerUtils from '../../utils/mockUtils'
import { MockMethod } from 'vite-plugin-mock'
import Mock from 'mockjs'
import ${model.responseClassName} from '${model.responseClassFullName}'

const content: ${model.responseClassName}[] = []
for (let i = 0; i < 10; i++) {
	content.push({
		<#list model.fields as field>
		${field.name}: ${field.value},
		</#list>
	} as ${model.responseClassName})
}

const mockList:MockMethod[] = [...serverApiMockUtils.getDefaultServerApi(${model.apiConfigFullPath}, content)]

mockProdServerUtils.addMockList(...mockList)

export const items = content
